home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!mikenann
- From: Michael Glassman and Ann Ross <mikenann@netcom.com>
- Subject: Re: Overload
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <314E323F.20A6@netcom.com>
- Sender: mikenann@netcom10.netcom.com
- Content-Transfer-Encoding: 7bit
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <4iju56$m68@tic.sm.dsi.unimi.it>
- Mime-Version: 1.0
- Date: Tue, 19 Mar 1996 04:04:15 GMT
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- ~ZIO BUDDA~ wrote:
- >
- > Hi, this is my question :
- >
- > i have thi class :
- >
- > class Foo {
- > char *a;
- > String b;
- >
- > public:
- > char *GET();
- > String GET();
- > };
- >
- > why this overload is not poxible????
- > I don't want two function with 2 name, i want 2 function with the same name.
- >
- > tnx in advence.
- >
- > --
- > Zio Budda "sempre alla ricerca di un account..." moreld@ghost.dsi.unimi.it
- > http://www.dsi.unimi.it/Users/Students/moreld/home.html
- > Ask me for questions about LINUX and Games for PC, and see my home page
- > I'm a programmer and a consultant...
- >
- > Tel. 02/2139959 ... Chiedere di Davide Michel
-
- It is illegal.
- Overloaded functions must differ by more than the return type.
-
- Michael Glassman
-